/**
 * create by zm.he
 */
const gulp = require('gulp');
const browserSync = require('browser-sync').create();
const reload = browserSync.reload;

/**
 * 增加browser-sync支持
 */
gulp.task('browser-sync', function () {
  browserSync.init({
    server: {
      baseDir: "./app"
    },
    port: 8000
  });
  gulp.watch("./app/**/*.*").on('change', reload);
});